from scrapy import cmdline

cmdline.execute('scrpay crawl stock-My01 -s LOG_FILE=all.log'.split())

